export const qiankun = fetch('/config')
  .then(res => res.text())
  .then(res => {
    const { apps, routes } = JSON.parse(res);
    return {
      // 注册子应用信息
      apps,
      // 注册路由
      routes,
    };
  });
